﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PIPDiliverMapSetup.aspx.cs" Inherits="Hisun.View.ProductInProcess.PIPDiliverMapSetup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业路径设置</div></div>
    <div class ="CommonPage_Body">

        <table style="width:100%;">
            <tr>
                <td colspan="3" >
                 
                </td>
            </tr>
            <tr>
                <td colspan="3" style="background-color: #C0C0C0">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label3" runat="server" 
                        Text="当作业路径变动后，执行本功能更新当前会计期间的作业路径。本功能可多次执行。" SkinID="Label"></asp:Label>
                    <asp:Button SkinID = "Button" ID="Button_Update" runat="server" Text="更新路径" 
                        onclick="Button_Update_Click" 
                        onclientclick="return confirm('本操作将刷新当前会计期间的中间体流转路径，确定执行吗？')" Width="60px" />
                </td>
            </tr>
            <tr>
                <td colspan="3" style="background-color: #C0C0C0">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label1" runat="server" Text="查询字段：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_QueryIndex" runat="server" 
                        SkinID="DropdownList">
                        <asp:ListItem Value="0">产品账户ID</asp:ListItem>
                        <asp:ListItem Value="1">产品账户名称</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="Label2" runat="server" Text="查询内容：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_QueryValue" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                        Text="查询" />
                    <asp:Button SkinID = "Button" ID="Button_Refresh" runat="server" onclick="Button_Refresh_Click" 
                        Text="刷新" ToolTip="重建所有产品作业路径" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
    
    <asp:GridView ID="GridView_PathCache" runat="server" skinid ="GridView"
                                AutoGenerateColumns="False"  >
                                <Columns>
                                    <asp:BoundField DataField="产品ID" HeaderText="产品ID" />
                                    <asp:BoundField DataField="产品名称" HeaderText="产品名称" />
                                    <asp:BoundField DataField="路径" HeaderText="路径" HtmlEncode="False" 
                                        HtmlEncodeFormatString="False" />
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:Button SkinID = "Button" ID="Button_PathEdit" runat="server" CommandArgument='<%# Eval("产品ID") %>' 
                                                Text="编辑路径" oncommand="Button_PathEdit_Command" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div></div>
    </form>
</body>
</html>
<% =alert%>